<?php
$this->breadcrumbs=array(
	'Supplier Products'=>array('index'),
	$model->id,
);

$this->menu=array(
	array('label'=>'List SupplierProduct', 'url'=>array('index')),
	array('label'=>'Create SupplierProduct', 'url'=>array('create')),
	array('label'=>'Update SupplierProduct', 'url'=>array('update', 'id'=>$model->id)),
	array('label'=>'Delete SupplierProduct', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage SupplierProduct', 'url'=>array('admin')),
);
?>

<h1>View SupplierProduct <?php echo Product::model()->findByPk($model->product_id)->name; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'id',
		array(
            'label'     => 'Product',
            'value'     => Product::model()->findByPk($model->product_id)->name
        ),
		'unit_price',
		'unit',
		array(
            'label'     => 'Create Time',
            'value'     => date('d/m/Y H:i:s', $model->created_time)
        ),
		array(
            'label'     => 'Create By',
            'value'     => User::model()->findByPk($model->created_by)->full_name
        ),
	),
)); ?>
